package com.cash.channel.svc.service.api;

import com.cash.channel.svc.service.base.BankList;
import com.cash.channel.svc.util.ServiceUtils;
import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.BankListResponse;
import com.cash.channel.api.service.BaseApi;
import org.springframework.stereotype.Service;

@Service("bankList")
public class CJH000003 implements BaseApi<BankListResponse> {

    @Override
    public ApiResponseModel<BankListResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        BankList bankList = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.支持银行列表, BankList.class);
        return bankList.getBankList(apiRequestModel);
    }

}
